import axiosReq from '@/utils/axios-req'
const BASE_URL = import.meta.env.VITE_APP_BASE_URL_SYH

/**
 * 常量列表
 * @param data
 * @returns
 */
export const getSysConstantList = (data: any) => {
  return axiosReq({
    baseURL: BASE_URL,
    url: `/cloud/pbgl/sysConstant/list`,
    method: 'POST',
    data
  })
}

/**
 * 修改常量
 * @param data
 * @returns
 */
export const updateSysConstant = (data: any) => {
  return axiosReq({
    baseURL: BASE_URL,
    url: `/cloud/pbgl/sysConstant/update`,
    method: 'POST',
    data,
    showMsg: true
  })
}
